/** 获取输入组件类型 */
export function getTypeOfField(field) {
  const tag = field.__config__.tag
  const type = field.type
  if (tag === 'el-select') {
    return 'picker'
  }
  if (tag === 'el-input') {
    if (type === 'textarea') {
      return 'textarea'
    }
    return 'input'
  }
  if (tag === 'el-time-picker') {
    return 'datetime'
  }
  if (tag === 'el-upload') {
    return 'upload'
  }
}
